package com.nettest.dao.usermanage;

import java.util.List;

import org.apache.log4j.Logger;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.stereotype.Service;

import com.nettest.entity.UserProfile;
import com.nettest.service.BaseServiceForHibernate;
@Service
public class UserProfileDao extends BaseServiceForHibernate<UserProfile>{
	static Logger logger = Logger.getLogger(UserProfileDao.class
			.getName());
	
	@SuppressWarnings("unchecked")
	public List<UserProfile> query(DetachedCriteria detachedCriteria,
			int firstResult, int maxResults) {
		//super.getHibernateTemplate().setCacheQueries(true);
		//super.getHibernateTemplate().setQueryCacheRegion("com.armitage.common");
		return super.getHibernateTemplate().findByCriteria(detachedCriteria,firstResult,maxResults);
	}
}
